#pragma once 
#include <unistd.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <string.h>
#include <stdlib.h> 
#define SIZE 1024
#define FLUSH_NOW 1
#define FLUSH_LINE 2
#define FLUSH_FULL 4
typedef struct my_FILE{
    int mark;
    unsigned int flags;
    int fileno;
    char cache[SIZE];
    int cap;
    int pos;
}my_FILE;
my_FILE* my_fopen(const char* path, const char* flag);
void my_fflush(my_FILE* fp);
ssize_t my_fwrite(my_FILE* fp, const char* data, int len);
void my_fclose(my_FILE* fp);
